\hypertarget{structnih_1_1clamped__cosine__fun}{
\section{nih\-:\-:clamped\-\_\-cosine\-\_\-fun$<$ \-Vector\-\_\-type $>$ \-Struct \-Template \-Reference}
\label{structnih_1_1clamped__cosine__fun}\index{nih\-::clamped\-\_\-cosine\-\_\-fun$<$ Vector\-\_\-type $>$@{nih\-::clamped\-\_\-cosine\-\_\-fun$<$ Vector\-\_\-type $>$}}
}


{\ttfamily \#include $<$functors.\-h$>$}

\subsection*{\-Public \-Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structnih_1_1clamped__cosine__fun_a48564a12b9657f1d4548679d7a33e6eb}{
typedef \-Vector\-\_\-type {\bfseries argument\-\_\-type}}
\label{structnih_1_1clamped__cosine__fun_a48564a12b9657f1d4548679d7a33e6eb}

\item 
\hypertarget{structnih_1_1clamped__cosine__fun_aa344a9403e7eb8e7c5917fdcd7480804}{
typedef float {\bfseries result\-\_\-type}}
\label{structnih_1_1clamped__cosine__fun_aa344a9403e7eb8e7c5917fdcd7480804}

\end{DoxyCompactItemize}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\-N\-I\-H\-\_\-\-H\-O\-S\-T\-\_\-\-D\-E\-V\-I\-C\-E \hyperlink{structnih_1_1clamped__cosine__fun_a84b1ff420bf0e6e7ff652eb4c19a1ed9}{clamped\-\_\-cosine\-\_\-fun} (const \-Vector\-\_\-type \&normal)
\item 
\hypertarget{structnih_1_1clamped__cosine__fun_ae050d2c782c501271cf0d23b679b2dd6}{
\-N\-I\-H\-\_\-\-H\-O\-S\-T\-\_\-\-D\-E\-V\-I\-C\-E float {\bfseries operator()} (const \-Vector\-\_\-type \&dir) const }
\label{structnih_1_1clamped__cosine__fun_ae050d2c782c501271cf0d23b679b2dd6}

\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structnih_1_1clamped__cosine__fun_aa54d4ab9cac12ab1e1b8f8f01f982df7}{
const \-Vector\-\_\-type {\bfseries m\-\_\-normal}}
\label{structnih_1_1clamped__cosine__fun_aa54d4ab9cac12ab1e1b8f8f01f982df7}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\subsubsection*{template$<$typename Vector\-\_\-type$>$struct nih\-::clamped\-\_\-cosine\-\_\-fun$<$ Vector\-\_\-type $>$}

\-A functor to compute the clamped cosine of the angle formed with a given normal 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{structnih_1_1clamped__cosine__fun_a84b1ff420bf0e6e7ff652eb4c19a1ed9}{
\index{nih\-::clamped\-\_\-cosine\-\_\-fun@{nih\-::clamped\-\_\-cosine\-\_\-fun}!clamped\-\_\-cosine\-\_\-fun@{clamped\-\_\-cosine\-\_\-fun}}
\index{clamped\-\_\-cosine\-\_\-fun@{clamped\-\_\-cosine\-\_\-fun}!nih::clamped_cosine_fun@{nih\-::clamped\-\_\-cosine\-\_\-fun}}
\subsubsection[{clamped\-\_\-cosine\-\_\-fun}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Vector\-\_\-type $>$ \-N\-I\-H\-\_\-\-H\-O\-S\-T\-\_\-\-D\-E\-V\-I\-C\-E {\bf nih\-::clamped\-\_\-cosine\-\_\-fun}$<$ \-Vector\-\_\-type $>$\-::{\bf clamped\-\_\-cosine\-\_\-fun} (
\begin{DoxyParamCaption}
\item[{const \-Vector\-\_\-type \&}]{normal}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{structnih_1_1clamped__cosine__fun_a84b1ff420bf0e6e7ff652eb4c19a1ed9}
constructor


\begin{DoxyParams}{\-Parameters}
{\em normal} & reference normal \\
\hline
\end{DoxyParams}


\-The documentation for this struct was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
basic/\hyperlink{functors_8h}{functors.\-h}\end{DoxyCompactItemize}
